Ewan Mellor [Wed, 6 Dec 2006 15:38:29 +0000 (15:38 +0000)]
Clarify that memory values are in bytes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 15:20:03 +0000 (15:20 +0000)]
Improved task handling model.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 15:13:33 +0000 (15:13 +0000)]
Tidy up the get_by_name_label description.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 15:05:23 +0000 (15:05 +0000)]
Clarify that the self parameter is an object reference, not the instance (i.e.
record) itself.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 15:01:08 +0000 (15:01 +0000)]
Tidy up the get_record and get_by_uuid descriptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 13:28:37 +0000 (13:28 +0000)]
More description tidyups -- constructors and destructors this time.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 13:24:28 +0000 (13:24 +0000)]
Tidy-up some of the descriptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Wed, 6 Dec 2006 12:13:22 +0000 (12:13 +0000)]
[XEN] remove unused monitor_vtable mapping.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 11:25:51 +0000 (11:25 +0000)]
Added Xen-API implementations for xm pause, xm unpause, xm destroy, xm rename,
and fix xm suspend and xm delete.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 11:24:37 +0000 (11:24 +0000)]
Implement VM.set_name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 11:02:32 +0000 (11:02 +0000)]
Added support for configuration file for xm, and use that to specify
contact and authentication details for the Xen-API server.
The default behaviour is still to use the existing legacy XML-RPC server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 10:47:31 +0000 (10:47 +0000)]
Added server proxy and session manager for Xen-API clients.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 10:37:10 +0000 (10:37 +0000)]
Fix server reloading when the HTTP server is enabled.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 10:13:46 +0000 (10:13 +0000)]
Don't trace inside SrvServer.py -- it's doing a one-second sleep in a loop, so
it just fills the trace with useless clutter.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 10:12:39 +0000 (10:12 +0000)]
Move the actual call routed by do_legacy_api_with_uuid out of the scope of
the domains_lock. The call itself is already locking as necessary, and it
is important for domain_start to be able to release the lock across the scope
of waitForDevices.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 6 Dec 2006 10:10:06 +0000 (10:10 +0000)]
Fix HTTP server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 5 Dec 2006 15:47:43 +0000 (15:47 +0000)]
Fix error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Wed, 6 Dec 2006 10:05:41 +0000 (10:05 +0000)]
Fixes a mistake in changeset 12732
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Ian Campbell [Tue, 5 Dec 2006 17:01:34 +0000 (17:01 +0000)]
[LINUX] The crash note resource should be nested inside the hypervisor
resource.
This was exposed by 12709:
98413fa7826c which corrected the length of
the hypervisor resource.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Tim Deegan [Tue, 5 Dec 2006 12:42:29 +0000 (12:42 +0000)]
[XEN] sh_gfn_to_mfn_foreign() must handle guest pfns above 4GB on PAE
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 19:13:55 +0000 (19:13 +0000)]
This adds a recently added parameter to the vm.start call.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ewan Mellor [Mon, 4 Dec 2006 18:05:32 +0000 (18:05 +0000)]
Tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 17:52:33 +0000 (17:52 +0000)]
Fix numpad handling in QEMU's VNC server. The keymaps that we have include
information on which keys change depending upon the numlock setting, but
this isn't being used. By forcing numlock on and off as necessary, when
receiving these keysyms through the VNC connection, we ensure that the
server's numlock status is the same as the client's.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 13:57:18 +0000 (13:57 +0000)]
Close the server when instructed, so that we can reload on the same port, and
diagnose a server that fails to start.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 13:56:27 +0000 (13:56 +0000)]
Diagnose a failing server, rather than just locking up the whole daemon.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 13:37:53 +0000 (13:37 +0000)]
Added rudimentary "xend reload" functionality. This allows you to reconfigure
the services offered by Xend, without restarting the daemon itself.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 10:27:23 +0000 (10:27 +0000)]
Tidy error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 10:24:54 +0000 (10:24 +0000)]
More capitalisation fixes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 4 Dec 2006 10:20:56 +0000 (10:20 +0000)]
With PERMISSIVE turned on, diagnose missing Enums and Bools, and improve the
diagnosis of missing structure values.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:29:26 +0000 (09:29 +0000)]
[QEMU] Error reporting in IDE device model.
Following on from my patch to make blktap report I/O errors back to
guest OS, a similar problem exists in the QEMU codebase. The IDE
driver never reports I/O errors during read/write operations back to
the guest OS. Instead all I/O operations are reported as
succesfull. If, for example, the host FS holding the disk image fills
up, then writes may fail due to lack of space. Since the guest OS
never sees these failures, it assumes all is well & will continue
writing. Eventually this can lead to severe & unrecoverable filesystem
corruption.
The attached patch fixes QEMU ide driver such that any failure of a
read or write operation sets the appropriate IDE status/error
registers. Having read the ATA-6 spec I think the most compliant
behaviour is to set the status register to 'READY_STAT | ERR_STAT',
and the error register to ABRT_ERR. There is already a convenience
function ide_abort_command() in the QEMU codebase which does just
this, so the attached patch simply calls that function.
With this patch the guest OS sees the I/O failure & the kernel logs
IDE errors and then retries the operation. This at least ensures that
the guest can be shutdown the out of space issue in the host corrected
and the guest restarted, without any serious filesystem damage having
occurred.
From: Daniel Berrange <berrange@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:21:10 +0000 (09:21 +0000)]
Add XEN_FRAMEBUFFER to -xen defconfigs.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
kfraser@localhost.localdomain [Mon, 4 Dec 2006 09:20:12 +0000 (09:20 +0000)]
Remove useless segments push/pop in VMXAssist.
According to Intel Spec, segments registors are cleared when exiting
virtual-8086 mode through trap or interrupts gate, so it's no need to
save their values in stack.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Ian Campbell [Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)]
[PATCH 02/02] Kexec / Kdump: Don't declare _end
_end is already declared in xen/include/asm/config.h, so don't declare
it twice. This solves a powerpc/ia64 build problem where _end is declared
as char _end[] compared to unsigned long _end on x86.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Ian Campbell [Mon, 4 Dec 2006 09:08:47 +0000 (09:08 +0000)]
[PATCH 01/02] Kexec / Kdump: Use NOTE_ALIGN() instead of ALIGN()
ALIGN() is already defined in xen/include/asm-ia64/config.h. This patch
renames ALIGN() to NOTE_ALIGN() to make the kexec code build on ia64.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Sun, 3 Dec 2006 17:44:14 +0000 (17:44 +0000)]
[XEN] Fix 32-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sun, 3 Dec 2006 17:15:48 +0000 (17:15 +0000)]
[XEN] Add 'insn_fetch' memory operation to the x86_emulator.
This can be used to perform correct access checks, provide appropriate
error codes when injecting faults, and to implement an
instruction-stream prefetch cache (which is included here for HVM PTE
update emulations).
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Sun, 3 Dec 2006 13:30:23 +0000 (13:30 +0000)]
Revert the change to destroy all VMs when skipping or failing tests -- this
needs more thought, because people shouldn't need to set up their Xen-API server
to run the non-Xen-API bits of the test, and at the moment, you get
authentication failures on every SKIP.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 2 Dec 2006 16:39:53 +0000 (16:39 +0000)]
Make the xenfb tools an optional part of the build, as they introduce new
dependencies (libvncserver and libsdl devel packages). Enable them with
XENFB_TOOLS=y.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 18:35:19 +0000 (18:35 +0000)]
[XEND] Fix mis-types in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 18:33:11 +0000 (18:33 +0000)]
Merge
Alastair Tse [Fri, 1 Dec 2006 17:43:18 +0000 (17:43 +0000)]
Merge
Alastair Tse [Fri, 1 Dec 2006 17:42:39 +0000 (17:42 +0000)]
Merge
Ewan Mellor [Fri, 1 Dec 2006 17:40:07 +0000 (17:40 +0000)]
Use the new xen-api.sock for the calls to the Xen-API server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 17:37:42 +0000 (17:37 +0000)]
[XEND] Re-add vtpm device support in XendConfig
This patch re-adds a recently removed vTPM device handling code.
I am also removing that one code part in the test script that does not
work.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Ewan Mellor [Fri, 1 Dec 2006 17:37:09 +0000 (17:37 +0000)]
This patch provides XmTestManagedDomain and XenManagedDomain classes
similar to the XmTestDomain and XenDomain classes. I have wrapped the
xen-api for VM configuration creation, starting and stopping of VMs and
destruction of the VM configuration in the XenManagedDomain class's
methods. No device-related functions are provided through the class.
The managed domains' UUIDs are tracked and all created VMs are destroyed
upon failure or skipping of the test or by calling
xapi.vm_destroy_all().
I am adding a new grouptest 'xapi' for running xen-api tests.
Only caveat: I am using an empty username and password
(XmTestList/xapi.py) with Xend's authentication deactivated to run these
tests.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Alastair Tse [Fri, 1 Dec 2006 17:31:50 +0000 (17:31 +0000)]
Merge
Alastair Tse [Fri, 1 Dec 2006 17:31:30 +0000 (17:31 +0000)]
[XENAPI] Add extra param for VM.start and fix case for printing out
the output of VM.get_record.
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 17:30:39 +0000 (17:30 +0000)]
[XEND] Proper importing of Xen API VM Struct into new XendConfig
Use a smarter method of importing the Xen API VM struct when adding to
XendConfig.
Also add a commented __setitem__ override for XendConfig to type check
certain configuration values.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 17:29:04 +0000 (17:29 +0000)]
[XEN] Allow shutdown code to be set at most once per domain.
SIgned-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 17:21:19 +0000 (17:21 +0000)]
[XEND] Fix case mismatch in VM.get_record for Xen API
Also make VM.get_all return halted domains too.
Signed-off-by: Alastair Tse <atse@xensource.com>
Andrew Warfield [Fri, 1 Dec 2006 17:01:04 +0000 (09:01 -0800)]
Fix a number of flaws in the blktap userspace daemon when dealing
with I/O errors.
There are a number of flaws in the blktap userspace daemon when dealing
with I/O errors.
- The backends which use AIO check the io_events.res member to determine
if an I/O error occurred. Which is good. But when calling the callback
to signal completion of the I/O, they pass the io_events.res2 member
Now this seems fine at first glance[1]
"res is the usual result of an I/O operation: the number of bytes
transfered, or a negative error code. res2 is a second status
value which will be returned to the user"
Except that
"currently (2.6.0-test9), callers of aio_complete() within the
kernel always set res2 to zero."
And this hasn't changed anytime since 2.6.0, so by passing through
the status from 'res2', the callback thinks the I/O operation succeeded
even when it failed :-(
The fix is simple instead of passing 'res2', just pass
ep->res == io->u.c.nbytes ? 0 : 1
This would solve the error reporting to the guest, except that there
is a second flaw...
- The tapdisk I/O completion callback checks the status parameter
passed in, syslog's it and then returns. It never bothers to send
the I/O completion response back to the blktap kernel driver when
a failure occurrs.
Fortunately the fix for this is also simple. Instead of returning
from the callback when dealing with an error, we simply toggle the
status field for the pending response to BLKIF_RSP_ERROR and then
continue with the normal codepath. So the error eventually gets
back to the guest.
The scenario I used to discover the problem and test the patch is thus:
- In dom0 create a filesystem with only 200 MB of free space
- Create a 1 GB sparse file on this volume.
- Configure the guest so this sparse file appears as /dev/xvdb
- In the domU create a single partition on /dev/xvdb and format
it with ext3.
- In the DomU, mount /dev/xvdb1 on /mnt and then run
dd if=/dev/zero of=/mnt/data.bin bs=1GB count=1
Without this patch, the 'dd' command would succeed in writing 1 GB of data
even though the underlying disk in Dom0 was only 200 MB in size. More complex
tests of copying a whole directory heirarchy across resulted in catastrophic
data corruption of the filessytem itself. Manual fsck was needed to fixup
the filesystem & there were many very bad errors needing fixing.
With this patch applied the DomU sees the I/O failures and kernel logs
messages
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 722127
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 730327
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 738527
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 746727
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 754927
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 763127
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 771327
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 779527
Dec 1 11:02:53 dhcp-5-203 kernel: end_request: I/O error, dev xvdc, sector 792399
It will retry the I/O operation until it runs out of sectors to try, and then
fail the operation. The filesystem is not seriously damaged - ext3 journal
recovery will trivially cleanup if the guest is rebooted after the disk in
Dom0 is enlarged.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
[1] http://lwn.net/Articles/24366/
Alastair Tse [Fri, 1 Dec 2006 16:31:36 +0000 (16:31 +0000)]
[XEND] Fix outputting device SXPs when domain is halted.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 15:45:59 +0000 (15:45 +0000)]
[HVM] Cache segment-register contents during PTE-update emulations.
Also clean up page-fault propagation to inject the correct error
code and CR2 value.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 15:12:48 +0000 (15:12 +0000)]
[TOOLS] Checks for libvncserver-dev and libsdl-dev.
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 14:35:33 +0000 (14:35 +0000)]
[XEND] Fix missing vncpasswd option for HVM domains.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:30:42 +0000 (14:30 +0000)]
Update hgignore list.
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:29:32 +0000 (14:29 +0000)]
[XEN] Remove uses of 'extern inline'.
Original patch by Christoph Egger at AMD.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 14:25:36 +0000 (14:25 +0000)]
[LIBXC] Add new AP{I function xc_evtchn_bind_unbound_port().
Add a comment clarifying how this function differs from
xc_evtchn_alloc_unbound().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 13:57:46 +0000 (13:57 +0000)]
[XEN] Emulate XADD instruction.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 13:55:28 +0000 (13:55 +0000)]
[XEND] Reapply fix for ever expanding kernel_args in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 13:53:04 +0000 (13:53 +0000)]
[XEND] Ensure config value types in XendConfig
Add definitions of what we expect the types to be for the values in
XendConfig and apply them when parsing SXP where all values are either
strings or list.
Also fix missing stdvga in HVM config.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 13:44:33 +0000 (13:44 +0000)]
[LINUX] dev/mem: Rename Xen's mmap_mem to xen_mmap_mem to
avoid conflict with the definition (which still exists and
is used) in drivers/char/mem.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Fri, 1 Dec 2006 13:25:33 +0000 (13:25 +0000)]
Actually return something from bool0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 1 Dec 2006 13:09:30 +0000 (13:09 +0000)]
Update README to reflect moved library.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Steven Smith [Fri, 1 Dec 2006 13:12:41 +0000 (13:12 +0000)]
Merge.
Steven Smith [Fri, 1 Dec 2006 13:11:53 +0000 (13:11 +0000)]
[PVFB][TOOLS] Don't unwatch the framebuffer frontend's state node just
because it want to state Closed. Otherwise, we don't notice when
the node gets deleted, and can't reliably shut the backend down.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Ewan Mellor [Fri, 1 Dec 2006 13:08:36 +0000 (13:08 +0000)]
Set localtime, enable_audio, clock_offset, and std_vga back to being bools, not
ints. This is a recent breakage.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 1 Dec 2006 13:07:19 +0000 (13:07 +0000)]
Added log message for when a VM is deleted.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Fri, 1 Dec 2006 13:06:15 +0000 (13:06 +0000)]
Include the rotated xend.log.X in the bug report.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Steven Smith [Fri, 1 Dec 2006 12:38:41 +0000 (12:38 +0000)]
[PVFB][TOOLS] Fix save/restore for domains with PV framebuffers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Ewan Mellor [Fri, 1 Dec 2006 12:24:42 +0000 (12:24 +0000)]
Link test/test_bindings against libxenapi in the new location.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Steven Smith [Fri, 1 Dec 2006 12:20:12 +0000 (12:20 +0000)]
[TOOLS][PVFB] Avoid zombie framebuffer backends.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Fri, 1 Dec 2006 12:09:10 +0000 (12:09 +0000)]
[TOOLS] Remove some dead code.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Fri, 1 Dec 2006 12:03:38 +0000 (12:03 +0000)]
Merge.
Steven Smith [Fri, 1 Dec 2006 12:03:15 +0000 (12:03 +0000)]
[PVFB] Make sure that framebuffer backend goes away when the domain
terminates, and that it cleans up its area of xenstore.
Tidy up argument parsing a little while I'm here.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 11:54:53 +0000 (11:54 +0000)]
[XEN] Quieten down HVM debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 1 Dec 2006 11:52:33 +0000 (11:52 +0000)]
[LINUX] The removal of the console_use_vt hack was premature: it's still
required if CONFIG_VT is enabled but the domain isn't currently
configured to use the PV framebuffer. Put it back in, in a slightly
more palatable form.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Fri, 1 Dec 2006 11:49:30 +0000 (11:49 +0000)]
[PVFB][TOOLS] Change the configuration syntax for PVFB backends to more
closely match that of other devices.
This involves moving the logic for backend creation out of the image
handlers and in to the device handler, which is a much more sensible
place for it.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Ewan Mellor [Fri, 1 Dec 2006 11:32:32 +0000 (11:32 +0000)]
Tidy up the creation of directories that Xend needs. This avoids potential
races in this creation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 11:08:34 +0000 (11:08 +0000)]
merge
Alastair Tse [Fri, 1 Dec 2006 11:07:22 +0000 (11:07 +0000)]
[XEND] More fixes for HVM device configuration parsing
Removed duplicated acpi option, added missing stdvga option. Do not
output empty configurations in image sxp. Remove bug with vcpus
passing in device model.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 11:04:27 +0000 (11:04 +0000)]
[HVM] Add canonical address checks and generally clean up.
Based on a patch from Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 1 Dec 2006 10:47:57 +0000 (10:47 +0000)]
[XEND] Fix missing serial and localtime args in device model for HVM
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:59:56 +0000 (09:59 +0000)]
[XENOPROF] Fix oprofile for AMD SVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:51:13 +0000 (09:51 +0000)]
[HVM][VMX] Rename io.c -> intr.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 1 Dec 2006 09:48:32 +0000 (09:48 +0000)]
This is Anthony Liguori's virtual framebuffer forward ported and
extensively hacked based on feedback from xen-devel.
Its architecture is comparable to the common split device driver
architecture: xenfb and xenkbd modules serve as frontend in domU, and
the user space vncfb or sdlfb process serves as backend in dom0.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kfraser@localhost.localdomain [Fri, 1 Dec 2006 09:48:18 +0000 (09:48 +0000)]
[HVM][VMX] Fix for CR8 acceleration on 64bit guest.
For current CR8 acceleration, we do not call update_tpr_threshold() at
every VMEXIT. But at some situations, we cannot inject guest
interrupts in time. And at some critical time, it will bring up a blue
screen to 64bit Windows guest.
Now, we select to call update_tpr_threshold() at very VMEXIT
time. It's safe, and we do not see clear performance downgrade so
far.
Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Tim Deegan [Fri, 1 Dec 2006 09:28:14 +0000 (09:28 +0000)]
[XEN] Fix error paths in p2m insertion code
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 20:16:54 +0000 (20:16 +0000)]
Fix default for the authentication on the Xen-API server -- the default should
be PAM, not none!
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 20:07:58 +0000 (20:07 +0000)]
Fix managed domain rebooting by only complaining about a VM name conflict if
the VM UUID conflicts as well.
Also, remove the previous_restart_time node when explicitly rebooting a guest --
the user ought to be able to drive reboots faster than the safety catch.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 19:11:51 +0000 (19:11 +0000)]
Fix registration on managed domains on xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ian Campbell [Thu, 30 Nov 2006 18:44:55 +0000 (18:44 +0000)]
[XEN] Only parse the crashkernel command line parameter once on boot
not each time it is requested.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 30 Nov 2006 18:44:54 +0000 (18:44 +0000)]
[XEN] Rename machine_shutdown to machine_reboot_kexec to better
reflect its purpose.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 30 Nov 2006 18:21:50 +0000 (18:21 +0000)]
[LINUX] Fix backward compatibility with hypervisors which do not support kexec.
Also do not rely on side effects in BUG_ON(x) -- use if(x) BUG() instead.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 18:08:34 +0000 (18:08 +0000)]
Fix HVM shutdown when xend is restarted.
Added a recreate call to ImageHandler, allowing the subclasses of that to
hook into the code that runs when xend restarts. This allows us in particular
to reregister the watches for HVM shutdown, and read the PID of qemu-dm from
the store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 18:05:19 +0000 (18:05 +0000)]
Fix-up reference to name_label.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 30 Nov 2006 17:28:51 +0000 (17:28 +0000)]
Reinstate the reboot-feature code that was accidentally lost as part of the
merge in changeset 12189.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ian Campbell [Thu, 30 Nov 2006 17:53:59 +0000 (17:53 +0000)]
[LINUX] Only initialise kexec in domain0.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:47:50 +0000 (17:47 +0000)]
[QEMU] Do shift-key processing in QEMU monitor terminal when connected via VNC.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:36:03 +0000 (17:36 +0000)]
[LIBXC] Fix Solaris build: Use XC_PAGE_SIZE not PAGE_SIZE.
Signed-off-by: John Levon <john.levon@sun.com>